import { Controller, Get, Param } from "@nestjs/common";
import { BookService } from "../service/book.service";

import { BookDto } from "../dto/book.bto";

@Controller()
export class BookController{
    constructor(private book:BookService){}
    @Get()
     findAll(){
        return []
    }
    @Get(':id')
    findOne(@Param('id') id:string){
        return this.book.findOne(id)
    }
}